package com.example.sixth.coree.service;

import com.example.sixth.coree.entity.Song;
import com.example.sixth.coree.entity.SongSubinfo;
import com.example.sixth.coree.mapper.SongMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SongService {
    @Resource
    SongMapper mapper;
    public List<Song> queryByLimit(){
        return mapper.queryByLimit();
    }
    public Song queryByMid(Integer mid){
        return mapper.queryByMid(mid);
    }
    public Boolean insert(Song song){
        return mapper.insert(song);
    }
    public Boolean updateSong(Integer mid){
        return mapper.updateSong(mid);
    }
    public List<SongSubinfo> queryByUserid(Integer user_id){
        return mapper.queryByUserid(user_id);
    }
}
